#ifndef RENDER_H
#define RENDER_H

#include <QApplication>
#include <QPushButton>
#include "ui_mainwindow.h"
#include "diseasedata.h"
#include "alldata.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class Render : public QObject
{
    Q_OBJECT
public:
    Render();
    Render(Ui::MainWindow *ui, AllData *data);
    void bannerRender(DiseaseData *bannerData);
    void WorldTreeRender(QVector<DiseaseData> worldData);
    void ChinaTreeRender(QVector<DiseaseData> chinaData);
    void plot(AllData *data);
    Ui::MainWindow *ui;
    AllData *data;
    int increaseTrendFlag=0;
    int deadAndHealTrendFlag = 0;
    int confirmTrendFlag = 0;
    QCPLegend legend;

public slots:
    void increaseTrend();
    void confirmTrend();
    void deadAndHealTrend();
};

#endif // RENDER_H
